package org.example.src.controller;

import org.example.src.dto.response.ApiResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
@CrossOrigin(origins = "*")
public class MainController extends BaseController {

    @GetMapping("/")
    public ResponseEntity<ApiResponse<String>> index() {
        return success("欢迎使用实习管理系统API");
    }

    @GetMapping("/health")
    public ResponseEntity<ApiResponse<String>> health() {
        return success("系统运行正常");
    }
}
